package com.ckm;

import com.ckm.config.DynamicMongoCreatorConfig;
import com.ckm.config.DynamicMongoProviderConfig;
import com.ckm.config.MongoConfig;
import com.ckm.properties.DynamicMongoProperties;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Import;

@EnableConfigurationProperties({DynamicMongoProperties.class})
@Import({MongoConfig.class,
        DynamicMongoProviderConfig.class,
        DynamicMongoCreatorConfig.class,})
@ConditionalOnProperty(prefix = DynamicMongoProperties.PREFIX, name = "enabled", havingValue = "true", matchIfMissing = true)
public class DynamicMongoAutoConfig {
}
